// 导入二次封装axios
import koi from "@/utils/axios.ts";
import { ITableParams } from "./type.ts";


export const listPage = (params: ITableParams) => koi.get("/admin/system/dict/list", params);

// 根据ID进行查询
export const read = (id: any) => koi.get("/admin/system/dict/read", { id });

// 根据ID进行修改
export const update = (data: any) => koi.post("/admin/system/dict/update", data);

// 添加
export const add = (data: any) => koi.post("/admin/system/dict/add", data);

// 删除
export const remove = (id: any) => koi.post("/admin/system/dict/remove", { id });

// 批量删除
export const batchDelete = (ids: any) => koi.post("admin/system/dict/batchDelete", ids);

// 修改状态
export const changeStatus = (id: any, status: any) => koi.post("/admin/system/dict/changeStatus", { id, status });
